#ifndef RANDOMOPP_H
#define RANDOMOPP_H
#include "poker_player.h"
#include <stdlib.h>

class Random_Opp : public PokerPlayer
{
public:
	Random_Opp()
	{
	};

	Action getNextAction(std::vector<Action> actionHistory, std::vector<Card> boardCards, int player1_chips, int player2_chips, bool dealer)
	{
		int random = rand()%2 +1; // 1,2,3

		if(random==1)
			return generateAction(raise,calcRaiseValue(&actionHistory));
		//else if(random==2)
		//	return generateAction(fold,0);
		else
		{	
			if(actionHistory.at(actionHistory.size()-1).move==raise || actionHistory.at(actionHistory.size()-1).move==postBlind)
			{
				return generateAction(call,calcCallValue(&actionHistory));
			}
			else
			{
				return generateAction(check,0);
			}
		}
	};

	std::vector<HoleCards> oppCards;
};

#endif
